{% extends "base.html" %} {% block content %}

<h2>审批报表</h2>
<div class="pageContent">
  <form action="{{full_path}}" method="post">
    {% csrf_token %} {{ form.as_p }}
    {% if "/approved/commit" in  full_path %}
    <input type="submit" name="is_commit" id="id_is_commit" value="提交"/>
    {% else %}
    <input type="submit" name="ok" id="id_ok" value="确定">
    {% endif %}
    {{full_path}}
  </form>
</div>
{% endblock %}
